Tweak AdditionOverflowInLoaderExifJpeg for 32bit unsigned char OSes
authorPino Toscano <pino@debian.org>
Tue, 3 Mar 2026 06:38:22 +0000 (07:38 +0100)
committerPino Toscano <pino@debian.org>
Tue, 3 Mar 2026 06:38:22 +0000 (07:38 +0100)
commit950514f179d61e1af12e496a19c70444a87450b0
treefd90c62f809c220f141d085d436f4a912e6248b1
parent6eb5a0d93b066f978d0d62a0fd79c4784d2b51bb
Tweak AdditionOverflowInLoaderExifJpeg for 32bit unsigned char OSes

Last-Update: 2023-07-16
Forwarded: not-needed

AdditionOverflowInLoaderExifJpeg expects an overflow to happen on 32bit
architectures; due to the way LoaderExifJpeg & StringValueBase work and the
test data is fabricated, the overflow happens only architectures with signed
char.

Tweak AdditionOverflowInLoaderExifJpeg to account for this, by not expecting an
overflow in case the architecture has unsigned char (e.g. ARM and POWER).

For more discussion and notes, see: https://github.com/Exiv2/exiv2/issues/933

Gbp-Pq: Name tests-overflow-skip-unsigned-char-23bit.diff
tests/bugfixes/github/test_CVE_2018_12265.py